package org.qqbot.qqbot.controller;

import lombok.extern.slf4j.Slf4j;
import org.qqbot.qqbot.request.WebHookRequest;
import org.qqbot.qqbot.vo.ResultVO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/api/webhook")
public class WebHookController {

    @RequestMapping("/callback")
    public ResultVO callback(WebHookRequest request) {
        log.info("webhook callback: {}", request);
        return new ResultVO("webhook", "webhook");
    }

}
